package de.tum.in.elitese.common;

/**
 * Helper class containing some nice methods used in Jsps.
 * 
 * @author Christoph Frenzel
 * 
 */
public class JspHelper {
	public static boolean isInArray(Object[] array, Object o) {
		if (array == null) {
			return false;
		}
		if (o == null) {
			return false;
		}

		for (Object object : array) {
			if (o.equals(object)) {
				return true;
			}
		}
		return false;
	}
}
